<?php
namespace app\scodetrace\validate;

class Prize extends \app\common\validate\Base {
	protected $rule=[
		'group_id|客户分组'=>'check_id:baseinfo/Group',
		'activity_id|关联的活动'=>'check_id:Activity',
		'name|奖品名'=>'length:1,50',
		'probability|获奖可能性'=>'float|elt:1|egt:0',
		'points|奖励积分点数'=>'number',
	];

	protected $create_require=['group_id','name','activity_id','probability'];
}
?>